package cn.jingyuan.swan.system.domain.sys.dao;

import cn.jingyuan.swan.cloud.dao.CrudDao;
import cn.jingyuan.swan.system.domain.sys.entity.Role;

public interface RoleDao extends CrudDao<Role, Long> {

    Role getByRoleCode(String roleCode);

    boolean isExist(Long roleId);

    boolean isExist(String roleCode);

    int countByRoleId(Long roleId);

}
